﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CatalogConfig.aspx.cs" Inherits="Pages_CatalogConfig" MasterPageFile="~/Admin/MasterPage.master" Title="类别设置管理" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div class="toolbar">
        <XCL:LinkBox ID="lbAdd" runat="server" BoxHeight="1129px" BoxWidth="440px" Url="CatalogConfigForm.aspx"
            IconLeft="../images/icons/icon005a2.gif"><b>添加类别设置</b></XCL:LinkBox>
        关键字：<asp:TextBox ID="txtKey" runat="server"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" Text="查询" />
    </div>
    <asp:GridView ID="gvCatalogConfig" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="ObjectDataSource1" AllowPaging="True" AllowSorting="True" CssClass="m_table" PageSize="20" CellPadding="0" GridLines="None" EnableModelValidation="True">
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="编号" SortExpression="ID" InsertVisible="False" ReadOnly="True" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" CssClass="key" />
            </asp:BoundField>
            <asp:BoundField DataField="SiteID" HeaderText="站点编号" SortExpression="SiteID" />
            <asp:BoundField DataField="CatalogID" HeaderText="类别编号" SortExpression="CatalogID" />
            <asp:BoundField DataField="CatalogInnerCode" HeaderText="类别内部代码" SortExpression="CatalogInnerCode" />
            <asp:BoundField DataField="CronExpression" HeaderText="克隆表达式" SortExpression="CronExpression" />
            <asp:BoundField DataField="PlanType" HeaderText="计划类型" SortExpression="PlanType" />
            <asp:BoundField DataField="StartTime" HeaderText="开始时间" SortExpression="StartTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="IsUsing" HeaderText="是否" SortExpression="IsUsing" />
            <asp:BoundField DataField="HotWordType" HeaderText="热点类型" SortExpression="HotWordType" />
            <asp:BoundField DataField="AllowStatus" HeaderText="允许状态" SortExpression="AllowStatus" />
            <asp:BoundField DataField="AfterEditStatus" HeaderText="之后编辑状态" SortExpression="AfterEditStatus" />
            <asp:BoundField DataField="Encoding" HeaderText="" SortExpression="Encoding" />
            <asp:BoundField DataField="ArchiveTime" HeaderText="存档时间" SortExpression="ArchiveTime" />
            <asp:BoundField DataField="AttachDownFlag" HeaderText="附件下标记" SortExpression="AttachDownFlag" />
            <asp:BoundField DataField="BranchManageFlag" HeaderText="分支管理标记" SortExpression="BranchManageFlag" />
            <asp:BoundField DataField="AllowInnerDeploy" HeaderText="允许内部发布" SortExpression="AllowInnerDeploy" />
            <asp:BoundField DataField="InnerDeployPassword" HeaderText="内部发布密码" SortExpression="InnerDeployPassword" />
            <asp:BoundField DataField="SyncCatalogInsert" HeaderText="同步类别插入" SortExpression="SyncCatalogInsert" />
            <asp:BoundField DataField="SyncCatalogModify" HeaderText="同步类别修改" SortExpression="SyncCatalogModify" />
            <asp:BoundField DataField="SyncArticleModify" HeaderText="同步文章修改" SortExpression="SyncArticleModify" />
            <asp:BoundField DataField="AfterSyncStatus" HeaderText="之后同步状态" SortExpression="AfterSyncStatus" />
            <asp:BoundField DataField="AfterModifyStatus" HeaderText="之后修改状态" SortExpression="AfterModifyStatus" />
            <asp:BoundField DataField="AllowInnerGather" HeaderText="允许内部采集" SortExpression="AllowInnerGather" />
            <asp:BoundField DataField="InnerGatherPassword" HeaderText="内部采集密码" SortExpression="InnerGatherPassword" />
            <asp:BoundField DataField="AllowComment" HeaderText="允许注释" SortExpression="AllowComment" />
            <asp:BoundField DataField="CommentAnonymous" HeaderText="注释匿名" SortExpression="CommentAnonymous" />
            <asp:BoundField DataField="CommentVerify" HeaderText="注释验证" SortExpression="CommentVerify" />
            <asp:BoundField DataField="Prop1" HeaderText="属性1" SortExpression="Prop1" />
            <asp:BoundField DataField="Prop2" HeaderText="属性2" SortExpression="Prop2" />
            <asp:BoundField DataField="Prop3" HeaderText="属性3" SortExpression="Prop3" />
            <asp:BoundField DataField="Prop4" HeaderText="属性4" SortExpression="Prop4" />
            <asp:BoundField DataField="AddUser" HeaderText="添加用户" SortExpression="AddUser" />
            <asp:BoundField DataField="AddTime" HeaderText="添加时间" SortExpression="AddTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="ModifyUser" HeaderText="修改用户" SortExpression="ModifyUser" />
            <asp:BoundField DataField="ModifyTime" HeaderText="修改时间" SortExpression="ModifyTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="BackupNo" HeaderText="备份编号" SortExpression="BackupNo" />
            <asp:BoundField DataField="BackupOperator" HeaderText="备份操作者" SortExpression="BackupOperator" />
            <asp:BoundField DataField="BackupTime" HeaderText="备份时间" SortExpression="BackupTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="BackupMemo" HeaderText="备份注释" SortExpression="BackupMemo" />
            <XCL:LinkBoxField HeaderText="编辑" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="CatalogConfigForm.aspx?ID={0}" Height="1129px" Text="编辑" Width="440px" Title="编辑类别设置">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
            </XCL:LinkBoxField>
            <asp:TemplateField ShowHeader="False" HeaderText="删除">
                <ItemTemplate>
                    <asp:LinkButton ID="btnDelete" runat="server" CausesValidation="False" CommandName="Delete"
                        OnClientClick='return confirm("确定删除吗？")' Text="删除"></asp:LinkButton>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
            没有符合条件的数据！
        </EmptyDataTemplate>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="NXCMS.CMS.CatalogConfig"
        DeleteMethod="Delete" EnablePaging="True" OldValuesParameterFormatString="original_{0}"
        SelectCountMethod="SearchCount" SelectMethod="Search" SortParameterName="orderClause"
        TypeName="NXCMS.CMS.CatalogConfig">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtKey" Name="key" PropertyName="Text" Type="String" />
            <asp:Parameter Name="orderClause" Type="String" />
            <asp:Parameter Name="startRowIndex" Type="Int32" />
            <asp:Parameter Name="maximumRows" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <XCL:GridViewExtender ID="gvExt" runat="server">
    </XCL:GridViewExtender>
</asp:Content>